{% extends "mybase2.html" %} {# 替换掉base模板的标题 #} 
{% block title %} app首页 {% endblock %} 

{% block style %} 
{{ super() }}
    <link href="{{ url_for('static',filename='css/auth/style.css') }}" rel="stylesheet" type="text/css">

<style>     
                  
</style>
{% endblock %} 

{% block content %}
{{ super()}} 

    {# 
	<div style="width: 60%; display: block; margin: auto">
		<h2 id="title-h2" style="text-align: center">我是flask-APP主页</h2>
		<h2>
			<img alt="Avatar" class="avatar" src="{{ url_for('static', filename='images/avatar.png') }}" />
		</h2>

		{% if current_user.is_authenticated %}
		<li><a href="{{ url_for('watchlist.settings') }}">watchlist APPs</a></li>

		<li><a href="{{ url_for('watchlist.logout') }}">退出登录</a></li>
		{% else %}
		<li><a href="{{ url_for('auth.register') }}">去注册</a></li>
		{% endif %}

		<nav>
			<ul>
				<li><a href="{{ url_for('todo.index') }}">todo APPs</a></li>
				<li><a href="{{ url_for('watchlist.index') }}">watchlist APPs</a></li>
				<li><a href="{{ url_for('auth.logout') }}">退出登录</a></li>
			</ul>
		</nav>
	</div>
    #}



{% endblock %}


{# 子页面的scripts #}
{% block script %} 
{{ super() }}
<script>
    // 点击切换到注册按钮还是登录按钮
  


	$(document).ready(function () {
		$("#btnid1").click(function () {
			alert("点击了按钮");
		});
	});

   

</script>
{% endblock %}
